package com.qf.dao;

import com.qf.pojo.po.XcOrder;
import com.qf.pojo.req.TrainOrderAndOrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface XcOrderMapper {
    int insertOrder(XcOrder xcOrder);
    List<TrainOrderAndOrderDetail> findOrderByUserId(@Param("orderUserId") Integer orderUserId, @Param("orderStatus") Integer orderStatus);

    int deleteorder(String orderId);

    List<TrainOrderAndOrderDetail> findOrderByUserIdAll(@Param("orderUserId") Integer orderUserId);
}
